﻿<!DOCTYPE html>
<html style="overflow: hidden;">
<head>
    <title>{$platform.title}</title>
    <link href="/static/css/framework-font.css" rel="stylesheet"/>
    <link href="/static/css/font/iconfont.css" rel="stylesheet"/>
    <script src="/static/js/jquery-2.1.1.js"></script>
    <script src="/static/bootstrap/bootstrap.js"></script>
    <link href="/static/bootstrap/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/css/dialog.css" rel="stylesheet"/>
    <script src="/static/js/dialog.js"></script>
    <script src="/static/js/jquery.cookie.js"></script>
    <link href="/static/css/framework-theme.css" rel="stylesheet"/>
    <script src="/static/js/framework-ui.js"></script>
    <script src="/static/js/framework-clientdata.js"></script>

    <!--        {if condition="$swidthStyle eq 0"}
    <link href="/static/css/pattern/public.css" rel="stylesheet"/>
    {else/}
    <link href="/static/css/default/public.css" rel="stylesheet"/>
    {/if}-->


    {if condition="$swidthStyle eq 0"}
    <link href="/static/css/pattern/public.css" rel="stylesheet"/>
    {else/}
        {if condition="$swidthStyle eq 0"}
    <link href="/static/css/pattern/public.css" rel="stylesheet"/>
    {else/}
    <link href="/static/css/default/public.css" rel="stylesheet"/>
    {/if}
    {/if}



</head>
<body style="overflow: hidden;">
<style>
.navbar > .container .navbar-brand{padding:0px!important;width:130px;padding-left:35px!important}
#logo.navbar-brand > img{height:65px;}
    .sclick_witch{
        display: inline-block;

        white-space: nowrap;

        width: 100%;

        overflow: hidden;

        text-overflow:ellipsis;
    }
</style>

<div id="ajax-loader"
     style="cursor: progress; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: #fff; z-index: 10000; overflow: hidden;">
    <img src="/static/images/ajax-loader.gif"
         style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;"/>
</div>
<div id="theme-wrapper">
    <header class="navbar" id="header-navbar" >
        <div class="container" style="padding-right: 0px;">
            <a href="#" id="logo" class="navbar-brand">
                <img src="/static/images/tablog.jpg" >
            </a>
            <div class="clearfix">
                <div class="nav-no-collapse navbar-left pull-left hidden-sm hidden-xs">
                    <ul class="nav navbar-nav pull-left">
                        <li>
                            <a class="btn" id="make-small-nav"><i class="fa fa-bars"></i></a>
                        </li>
                    </ul>
                </div>
                <div class="nav-no-collapse pull-right" id="header-nav">
                    <ul class="nav navbar-nav pull-right">

                        <li class="dropdown profile-dropdown">
                            <a href="#" class="dropdown" data-toggle="dropdown">
                                默认样式
                            </a>
                            <ul class="dropdown-menu pull-right selStyle">
                                <li><a data-val="0">默认样式</a></li>
                                <li><a data-val="1">其他风格</a></li>
                            </ul>
                        </li>


                        <li class="dropdown profile-dropdown">
                            <a href="#" class="dropdown" data-toggle="dropdown">
                                <img src="{$thisWechat.avatar}" alt="{$thisWechat.name}"/>
                                <span class="hidden-xs">{$thisWechat.name}  <i class="iconfont icon-xiala"></i></span>
                            </a>
                            <ul class="dropdown-menu pull-right">
                                {volist name="wechat" id="vo"}
                                <li class="sclick_witch" data-id="{$vo.id}">
                                    <img src="{$vo.avatar}" alt="{$vo.name}" style="width:45px;height:45px;border-radius:50px;padding:10px;"/>
                                    <span class="hidden-xs">{$vo.name}</span>
                                </li>
                                {/volist}
                            </ul>
                        </li>

                        <li class="dropdown profile-dropdown">
                            <a href="#" class="dropdown" data-toggle="dropdown">
<!--                                <img src="/static/images/scarlet-159.png" alt=""/>-->
                                <span class="hidden-xs">{$user}</span>
                            </a>
                            <ul class="dropdown-menu pull-right">

                                <li><a href="javascript:void();" onclick="layer.msg('浏览器缓存清除成功');"><i
                                        class="fa fa-trash-o"></i>清空缓存</a></li>
                                <li><a href="/login/login/OutLogin"><i class="ace-icon fa fa-power-off"></i>安全退出</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </header>
    <div id="page-wrapper" class="container">
        <div class="row">


            <div id="nav-col">
                <section id="col-left" class="col-left-nano">
                    <div id="col-left-inner" class="col-left-nano-content">

                        <div class="collapse navbar-collapse navbar-ex1-collapse" id="sidebar-nav">
                            <ul class="nav nav-pills nav-stacked">
                                <?php foreach($sub as $subk=>$subv):?>
                                <li class=""><a data-id="AE65555-" href="#"
                                                class="dropdown-toggle"><i class="iconfont {$subv['icon']}"></i><span><?=$subv["name"];?></span><i
                                        class="fa fa-angle-right drop-icon"></i></a>
                                    <ul class="submenu" style="display: none; overflow: auto;">
                                        <?php foreach($subv["sub"] as $subk2=>$subv2):?>
                                        <?php $subv2['action_name']=empty($subv2['action_name'])?'index':$subv2['action_name']; ?>

                                        <li><a class="menuItem" data-id="252229DB-35CA-47AE-BDAE-C9903ED5BA7B"
                                              target="_blank"  href="<?='/'.$subv2['module_name'].'/'.$subv2['controller_name'].'/'.$subv2['action_name']?>" data-index="1"><?=$subv2["name"];?></a></li>
                                        <?php endforeach;?>
                                    </ul>
                                </li>
                                <?php endforeach;?>
                            </ul>
                        </div>
                    </div>
                </section>
            </div>



            <div id="content-wrapper">
                <div class="content-tabs">
                    <button class="roll-nav roll-left tabLeft">
                        <i class="fa fa-backward"></i>
                    </button>
                    <nav class="page-tabs menuTabs">
                        <div class="page-tabs-content" style="margin-left: 0px;">
                            <a href="javascript:;" class="menuTab active" data-id="/Home/Default">欢迎首页</a>
<!--                            <a href="javascript:;" class="menuTab" data-id="/Home/About" style="padding-right: 15px;">平台介绍</a>-->
                        </div>
                    </nav>

                    <button class="roll-nav roll-right tabRight">
                        <i class="fa fa-forward" style="margin-left: 3px;"></i>
                    </button>



                    <div class="btn-group roll-nav roll-right">
                        <button class="dropdown tabClose" data-toggle="dropdown">
                            页签操作<i class="fa fa-caret-down" style="padding-left: 3px;"></i>
                        </button>
                        <ul class="dropdown-menu dropdown-menu-right">
<!--                            <li><a class="tabReload" href="javascript:void();">刷新当前</a></li>-->
                            <li><a class="tabCloseCurrent" href="javascript:void();">关闭当前</a></li>
                            <li><a class="tabCloseAll" href="javascript:void();">全部关闭</a></li>
                            <li><a class="tabCloseOther" href="javascript:void();">除此之外全部关闭</a></li>
                        </ul>
                    </div>
                    <button class="roll-nav roll-right" style="width:85px;">
<!--                        <i class="fa fa-arrows-alt"></i>-->
                        <a class="tabReload" href="javascript:;">刷新</a>
                    </button>
                </div>
                <div class="content-iframe" style="background-color: #f9f9f9; overflow: hidden;">
                    <div class="mainContent" id="content-main" >
                        <iframe class="NFine_iframe" width="100%" height="100%" src="/index/index/index_show" frameborder="0"
                                data-id="/Home/Default"></iframe>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="loadingPage" style="display: none;">
    <div class="loading-shade"></div>
    <div class="loading-content" onclick="$.loading(false)">数据加载中，请稍后…</div>
</div>
<script src="/static/js/index.js"></script>
<script src="/static/js/indextab.js"></script>
<script src="/static/js/pace.min.js"></script>
<script>
    $(".selStyle a").click(function () {
        var style = $(this).attr("data-val");
        $.ajax({
            url: "{:URL('index/index/switchStyle')}",
            type: 'POST',
            data: {style:style},
            dataType: 'json',
            success:function (res) {
                if(res.code == 0){
                    location.reload();
                }
            }
            ,error:function (res) {
                alert('错误');
            }
        });
    });



    $(".sclick_witch").click(function () {
        var id = $(this).attr("data-id");

        $.ajax({
            url: "{:URL('common/Common/sclickWitch')}",
            type: 'POST',
            data: {id:id},
            dataType: 'json',
            success:function (res) {
                if(res.code == 0){
                    location.reload();
                }
            }
            ,error:function (res) {
                alert('错误');
            }
        });
    });
</script>
</body>
</html>
